//
//  ClinicTableCell.m
//  EcmDoctor
//
//  Created by 张进 on 15/7/13.
//  Copyright (c) 2015年 张进. All rights reserved.
//

#import "ClinicTableCell.h"
#import <UIImageView+AFNetworking.h>
#import "NetWorkUtil.h"

@implementation ClinicTableCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setClinicModel:(Clinic *)clinicModel {
    [self.headImage setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", [NetWorkUtil getImagesBaseUrl], clinicModel.icon_Url]] placeholderImage:[UIImage imageNamed:@"icon"]];
    self.nameLbel.text = clinicModel.name;
    self.ageLabel.text = [clinicModel.age stringValue];
    self.sexLabel.text = clinicModel.sex;
    self.msgLabel.text = clinicModel.content;
    if ([clinicModel.info_state isEqualToString:@"1"]) {
        self.isRead.alpha = 0;
    }
}

@end
